﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TraceabilityApp_Infrastructure
{
    public interface IBase<T> where T : class
    {
        Task<int> Add(T t);
        //Task<int> AddAsync(List<T> t);
        Task<int> Del(T t);
        Task<int> Update(T t);
        //Task<int> Delete(List<T> t);
        IQueryable<T> GetAll();
        Task<T> GetValue(int id);
    }
}
